import { FormSchema } from '@/components/Form';
import { BasicColumn } from '/@/components/Table';
import { h } from 'vue';

export const nameFormSchema: FormSchema[] = [
  {
    field: 'taskName',
    label: '任务名称',
    component: 'Input',
    colProps: { span: 6 },
  },
  {
    field: 'tableName',
    label: '采集表',
    component: 'Select',
    componentProps: {
      options: [
        { label: '正常', value: 1 },
        { label: '冻结', value: 0 },
      ],
    },
    colProps: { span: 6 },
  },
];
export const timelinessFormSchema: FormSchema[] = [
  {
    field: 'name',
    label: '任务周期',
    component: 'Select',
    componentProps: {
      options: [
        { label: '月报', value: 1 },
        { label: '季报（3/6/9/12）', value: 2 },
        { label: '季报（2/5/8/11）', value: 3 },
        { label: '年报', value: 4 },
      ],
    },
    colProps: { span: 6 },
  },
  {
    field: 'publishTime',
    label: '发表时间',
    component: 'Select',
    componentProps: {
      options: [
        { label: '1号', value: 1 },
        { label: '5号', value: 0 },
      ],
    },
    colProps: { span: 6 },
  },
  {
    field: 'startTime',
    label: '开始时间',
    component: 'Select',
    componentProps: {
      options: [
        { label: '1号', value: 1 },
        { label: '15号', value: 15 },
        { label: '最后一天', value: 30 },
      ],
    },
    colProps: { span: 6 },
  },
  {
    field: 'endTime',
    label: '结束时间',
    component: 'Select',
    componentProps: {
      options: [
        { label: '1号', value: 1 },
        { label: '15号', value: 15 },
        { label: '最后一天', value: 30 },
      ],
    },
    colProps: { span: 6 },
  },
];
export const scopeFormSchema: FormSchema[] = [
  {
    field: 'status',
    label: '填报单位类型',
    component: 'Select',
    componentProps: {
      options: [
        { label: '工业..', value: 1 },
        { label: '冻结', value: 0 },
      ],
    },
    colProps: { span: 8 },
  },
];
export const columns: BasicColumn[] = [
  {
    title: '统一社会信用代码',
    dataIndex: 'name',
    width: 120,
  },
  {
    title: '单位名称',
    dataIndex: 'status',
    width: 120,
  },
  {
    title: '是否排除采集范围',
    dataIndex: 'exclude',
    width: 100,
    slots: { customRender: 'isExclude' },
  },
];
